import { err } from "./logger.js";
export default function (packageName) {
    return fetch(`https://data.jsdelivr.com/v1/package/npm/${packageName}`)
        .then((res) => res.json())
        .then(({ versions }) => {
            console.group("➡ 列出版本", packageName);
            console.table(versions);
            console.groupEnd("➡ 列出版本", packageName);
        })
        .catch(err("listVersion"));
}
